/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef FUNCTION_PATH_EFFECT_TEST_H
#define FUNCTION_PATH_EFFECT_TEST_H
#include <native_drawing/drawing_canvas.h>
#include <native_drawing/drawing_path.h>
#include <native_drawing/drawing_path_effect.h>
#include <native_drawing/drawing_rect.h>

#include "test_base.h"
#include "test_common.h"

class FunctionPathEffectCreateCornerPathEffect : public TestBase {
public:
    explicit FunctionPathEffectCreateCornerPathEffect(int type) : TestBase(type)
    {
        fileName_ = "FunctionPathEffectCreateCornerPathEffect";
    }
    ~FunctionPathEffectCreateCornerPathEffect() override {};

protected:
    void OnTestFunction(OH_Drawing_Canvas* canvas) override;
};

class FunctionPathEffectCreateDiscretePathEffect : public TestBase {
public:
    explicit FunctionPathEffectCreateDiscretePathEffect(int type) : TestBase(type)
    {
        fileName_ = "FunctionPathEffectCreateDiscretePathEffect";
    }
    ~FunctionPathEffectCreateDiscretePathEffect() override {};

protected:
    void OnTestFunction(OH_Drawing_Canvas* canvas) override;
};

class FunctionPathEffectCreateComposePathEffect : public TestBase {
public:
    explicit FunctionPathEffectCreateComposePathEffect(int type) : TestBase(type)
    {
        fileName_ = "FunctionPathEffectCreateComposePathEffect";
    }
    ~FunctionPathEffectCreateComposePathEffect() override {};

protected:
    void OnTestFunction(OH_Drawing_Canvas* canvas) override;
};

class FunctionPathEffectCreatePathDashEffect : public TestBase {
public:
    explicit FunctionPathEffectCreatePathDashEffect(int type) : TestBase(type)
    {
        fileName_ = "FunctionPathEffectCreatePathDashEffect";
    }
    ~FunctionPathEffectCreatePathDashEffect() override {};

protected:
    void OnTestFunction(OH_Drawing_Canvas* canvas) override;
};

class FunctionPathEffectCreateSumPathEffect : public TestBase {
public:
    explicit FunctionPathEffectCreateSumPathEffect(int type) : TestBase(type)
    {
        fileName_ = "FunctionPathEffectCreateSumPathEffect";
    }
    ~FunctionPathEffectCreateSumPathEffect() override {};

protected:
    void OnTestFunction(OH_Drawing_Canvas* canvas) override;
};
#endif // FUNCTION_PATH_EFFECT_TEST_H